# Core模块测试
if(BUILD_TESTS)
    find_package(GTest REQUIRED)
    
    file(GLOB CORE_TEST_SOURCES *.cpp)
    
    add_executable(core_test ${CORE_TEST_SOURCES})
    target_include_directories(core_test PRIVATE
        ${CMAKE_CURRENT_SOURCE_DIR}/../../include/core
    )
    
    target_link_libraries(core_test
        core
        GTest::GTest
        GTest::Main
        Poco::Foundation
    )
    
    add_test(NAME core_test COMMAND core_test)
endif()